<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            position: relative;
            margin: 50px;
            width: 190px;
            height: 190px;
            cursor: pointer;
        }

        /* 鼠标移入出现无货遮罩*/
        .box:hover:after {
            position: absolute;
            display: inline-block;
            z-index: 2;
            content: "无货";
            text-align: center;
            line-height: 190px;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, .3);
            border-radius: 50%;
            color: #fff;

        }

        /* 呼吸效果 */
        .box:after {
            position: absolute;
            z-index: -1;
            display: inline-block;
            content: "";
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #10b9ea;
            border-radius: 50%;
            color: #fff;
            opacity: 0.3;
            animation: breathe 1s infinite alternate;
        }

        img:hover {
            animation: imgx 2s;
        }

        @keyframes imgx {
            0% {
                transform: rotate(360deg);
            }

            100% {
                transform: none
            }
        }

        @keyframes breathe {
            0% {
                transform: scale(1, 1);
            }

            100% {
                transform: scale(1.3, 1.3);
            }

        }

    
    </style>
</head>

<body>
    <div class="box">
        <img src="https://www.beyondblueedu.com/beta_static/jidi/t-4.png" alt="">
    </div>

</body>

</html>